import { createApp } from 'vue'
import App from './App1.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)

import store from './vuex/one'
app.use(store)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

app.use(ElementPlus)

// 路由
import router from './router/router'
app.use(router)

// axios
import api from 'axios'
app.config.globalProperties.$api = api

app.mount('#app')
